<?php 
include_once('db.php');
$db=new DB();
$sql="select * from guest order by create_time asc";
$res=$db->get($sql);
 ?>
 <!DOCTYPE html>
<html>
<head>
	<title></title>
	<meta charset="UTF-8">
	<link href="bootstrap.min.css" rel="stylesheet">
<script src="jquery.min.js"></script>
<script src="bootstrap.min.js"></script>
<meta name="viewport" content=" width=device-width,initial-scale=1.0">
</head>
<body>
	<div class="container">
		<div class="public-nav">您当前的位置：<a href="">管理员管理</a></div>
		<div class="public-content">
			<div class="public-content-header">
				<h3>留言管理</h3>
			</div>
			<div class="row clearfix">
				<div class="col-md-12 column">
<table width="600" border="1" class="table table-bordered">
		<tr class="active">
			<td>ID</td>
			<td>用户名</td>
			<td>邮箱</td>
			<td>电话</td>
			<td>地址</td>
			<td>留言时间</td>
			<td>操作</td>
		</tr>
<?php for($i=0;$i<=count($res)-1;$i++)
{?>
<tr class="success">
<?php for($j=0;$j<=5;$j++){?>
<td><?php echo $res[$i][$j];?>
</td>
<?php }?>
<td><a href='guest_delete.php?act=del&id=<?php echo $res[$i][0]; ?>'>删除</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='#?act=rep&id=<?php echo $res[$i][0]; ?>'>回复</a></td></tr>
<?php }?> 
</table>
	</table> 
	</div>
	</div>
	</div>
</body>
</html>